import { Menu as IconMenu, Edit } from "@element-plus/icons-vue";

export default [
  {
    path: "/system",
    layoutLevel: true, // 布局路由不需要显示
    component: () => import("@/components/LayoutComp/LayoutComp.vue"),
    index: 2,
    children: [
      {
        path: "/systemManagement",
        meta: {
          title: "系统管理",
          icon: IconMenu,
          i18n: "nav.systemManagement",
          parent: "resource",
          key: "systemManagement",
          requireAuth: true,
          showNav: true,
          noTagsView: false,
        },
        component: () => import("@/components/EmptyRoute/index.vue"),
        index: 1,
        redirect: "/systemManagement/userManagement",
        children: [
          {
            path: "/systemManagement/userManagement",
            meta: {
              title: "用户管理",
              i18n: "nav.userManagement",
              parent: "systemManagement",
              key: "systemManagement-userManagement",
              requireAuth: true,
              showNav: true,
              icon: Edit,
              noTagsView: false,
            },
            component: () =>
              import("@/views/SystemManagement/UserManagement/index.vue"),
            index: 1,
          },
          {
            path: "/systemManagement/mapExample",
            meta: {
              title: "地图示例",
              i18n: "nav.mapExample",
              parent: "systemManagement",
              key: "systemManagement-mapExample",
              requireAuth: true,
              showNav: true,
              icon: Edit,
              noTagsView: false,
            },
            component: () =>
              import("@/views/SystemManagement/MapExample/index.vue"),
            index: 2,
          },
        ],
      },
    ],
  },
];
